package com.itheima.a01polymorphismdemo2;

public class Dog extends Animal {

    public Dog() {
    }

    public Dog(String color, int age) {
        super(color, age);
    }

    @Override
    public void eat(String food) {
        System.out.println(getAge()+"岁的"+getColor()+"颜色的狗两只前腿死死的抱着"+food+"猛吃");
    }
    public void lookHome(){
        System.out.println("狗看家");
    }
}
